<@console title="数据类型管理界面">
<table>
<tr>
<th rowspan="2" style="width:200px" valign="top">
	<#-- list -->
	<#list Valuetypes.all as vt>
		<#if vt.ID == valuetype.ID>
			${S(vt.label)}:${Q(vt.code)}<br>
		<#else>
		<a href="${URL('console/valuetype/', vt.ID)}">
			${S(vt.label)}:${Q(vt.code)}
		</a><br>
		</#if>
	</#list>
	&nbsp;
</th>
<td>
	<#-- form -->
	<@info/>
	<@warn/>
	<@form action="console/valuetype/save/${S(valuetype.ID)}">
		名称:<@input f="valuetype.label"/><@warn f="valuetype.label"/><br> 
		编码:<@input f="valuetype.code"/><@warn f="valuetype.code"/><br>
		类型:<#list Valuetypes.dataTypes as dt>
			<@radio f="valuetype.type" v=dt.value>${dt.label}</@radio>
		</#list><br>
		<@checkbox f="valuetype.checkMin">最少:</@checkbox>
		<@input    f="valuetype.min"  v=Utils.DoubleFormat(valuetype.min)/><@warn f="valuetype.min"/><br>
		<@checkbox f="valuetype.checkMax">最多:</@checkbox>
		<@input    f="valuetype.max"  v=Utils.DoubleFormat(valuetype.max)/><@warn f="valuetype.max"/><br>
		<@checkbox f="valuetype.autotrim">自动清除空格</@checkbox>
		<@checkbox f="valuetype.lockedValueLabels">忽略缺省值</@checkbox><br>
		检索:<@checkbox f="valuetype.parsable">分解 </@checkbox>
		     <@checkbox f="valuetype.storable">存贮</@checkbox><br>
		<br>
		<#if valuetype.ID??>
			<@button>保存</@button>
			<@button goto=URL('console/valuetype/remove/', valuetype.ID)>删除</@button>
		<#else>
			<@button>新增</@button>
		</#if>
	</@form>
</td>
</tr>
<tr><td>
<#include "valueLabels.ftl"/>
</td></tr>
</table>


</@console>